package com.eshop.modules.template.service.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.validation.constraints.NotNull;
import java.util.List;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

public class ShippingTemplatesDto implements Serializable
{
    private static final long serialVersionUID = 1L;
    private Integer id;
    @NotBlank(message = "模板名称不能为空")
    private String name;
    private Integer type;
    @NotNull(message = "请设置地域")
    @JsonProperty("region_info")
    private List<RegionInfoDto> regionInfo;
    private Integer appoint;
    @JsonProperty("appoint_info")
    private List<AppointInfoDto> appointInfo;
    private Long sort;
    
    public Integer getId() {
        return this.id;
    }
    
    public String getName() {
        return this.name;
    }
    
    public Integer getType() {
        return this.type;
    }
    
    public List<RegionInfoDto> getRegionInfo() {
        return this.regionInfo;
    }
    
    public Integer getAppoint() {
        return this.appoint;
    }
    
    public List<AppointInfoDto> getAppointInfo() {
        return this.appointInfo;
    }
    
    public Long getSort() {
        return this.sort;
    }
    
    public void setId(final Integer id) {
        this.id = id;
    }
    
    public void setName(final String name) {
        this.name = name;
    }
    
    public void setType(final Integer type) {
        this.type = type;
    }
    
    @JsonProperty("region_info")
    public void setRegionInfo(final List<RegionInfoDto> regionInfo) {
        this.regionInfo = regionInfo;
    }
    
    public void setAppoint(final Integer appoint) {
        this.appoint = appoint;
    }
    
    @JsonProperty("appoint_info")
    public void setAppointInfo(final List<AppointInfoDto> appointInfo) {
        this.appointInfo = appointInfo;
    }
    
    public void setSort(final Long sort) {
        this.sort = sort;
    }
}
